#define PLIST_PATH @"/var/mobile/Library/Preferences/com.tushaoye.airplayenabler.plist"
 
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

%hook SBControlCenterSettings
 
-(bool)useNewBounce {
if(GetPrefBool(@"bounce")) {
return FALSE;
}
return %orig;
}

%end

%hook SBControlCenterController

-(bool)isUILocked {
if(GetPrefBool(@"lock")) {
return FALSE;
}
return %orig;
}

-(void)setUILocked:(bool)argument {
if(GetPrefBool(@"lock")) {
argument = FALSE;
}
%orig(argument);
}

%end
